﻿using AutoMapper;
using ProsonUser.DomainExamList;
using ProsonUser.DomainOrderInfo;
using ProsonUser.DomainQuestion;
using ProsonUser.DomainTK;
using ProsonUser.ProsonExamDTO;
using ProsonUser.ProsonOrderDTO;
using ProsonUser.ProsonUserDTO;
using ProsonUser.QuestionDTO;
using ProsonUser.TKDTO;
using ProsonUser.Users;

namespace ProsonUser
{
    public class ProsonUserApplicationAutoMapperProfile : Profile
    {
        public ProsonUserApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */
            CreateMap<User, UserDTO>();
            CreateMap<UserCreateDTO, User>();

            CreateMap<OrderInfo, OrderDTO>();
            CreateMap<OrderCreateDTO, OrderInfo>(); 

                CreateMap<Question, QusetionDTO>();
                CreateMap<QuestionCreateDTO, Question>();
            CreateMap<TK, TKDTOs>();
            CreateMap<TKCreateDTO, TK>();
            CreateMap<Exam, ExamDTO>();
            CreateMap<ExamCreateDTO, Exam>();


        }
    }
}
